package cn.usian.pojo.feign;

import cn.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "userservice")
@RequestMapping("/user")
public interface UserFeign {
    @RequestMapping("/findById")
    public User findById (@RequestParam Integer id);

}
